// ignore_for_file: avoid_print

import 'dart:io';
import 'package:permission_handler/permission_handler.dart';

class PermissionUtil {
  static Future<void> request() async {
    if (!Platform.isAndroid) {
      return;
    }
    Map<Permission, PermissionStatus> status = await [
      Permission.requestInstallPackages,
      Permission.storage,
      Permission.location,
      Permission.camera,
    ].request();

    print(
        '---->权限,requestInstallPackages:${status[Permission.requestInstallPackages]}');
    print('---->权限,storage:${status[Permission.storage]}');
    print('---->权限,location:${status[Permission.location]}');
    print('---->权限,camera:${status[Permission.camera]}');
  }
}
